Ext.define('DragonApp.view.base.ChartToolbar', {
    extend: 'Ext.toolbar.Toolbar',
    alias: ['widget.base-chart-toolbar'],

    requires: [
        'Ext.button.Segmented'
    ],

    controller: 'base-chart',

    items: [
        '->',
        {
            xtype: 'segmentedbutton',
            allowMultiple: false,
            items: [{
                text: '新增用户'
            }, {
                text: '活跃用户'
            }, {
                text: '累计用户'
            }],
            listeners: {
                toggle: 'onToggleClick'
            }
        }
    ],
    initComponent: function() {

        //默认选择新增用户按钮

        this.callParent(arguments);
    }
});